package com.hellobike.haxing.modules.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 月度达成奖励设置管理
 * @Author: haxing-boot
 * @Date:   2020-03-11
 * @Version: V1.0
 */
@Data
@TableName("t_month_reward")
public class MonthReward implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.AUTO)
    private Long id ;

	/**开启状态：0-关闭 1-开启*/
	@Excel(name = "开启状态：0-关闭 1-开启", width = 15)
        private Integer openFlag ;

	/**活动开始时间(设置到月)*/
	@Excel(name = "活动开始时间(设置到月)", width = 20, format = "yyyy-MM")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM")
	@DateTimeFormat(pattern="yyyy-MM")
		private Date beginTime ;

	/**活动结束时间(设置到月)*/
	@Excel(name = "活动结束时间(设置到月)", width = 20, format = "yyyy-MM")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM")
	@DateTimeFormat(pattern="yyyy-MM")
		private Date endTime ;

	/**领奖日期(1-20)*/
	@Excel(name = "领奖日期(1-20)", width = 15)
	private Integer receiveAwardDay;

	/**活动规则*/
	@Excel(name = "活动规则", width = 15)
        private String activeRule ;

	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date createTime ;

	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date updateTime ;

	/**0不删除1删除*/
	@Excel(name = "0不删除1删除", width = 15)
      @TableLogic
      private Integer deleted ;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
        private Integer createBy ;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
        private Integer updateBy ;

	/**第一阶段奖励金额*/
	@TableField(exist = false)
	private BigDecimal stepOneReward ;
	/**第一阶段销售额*/
	@TableField(exist = false)
	private BigDecimal stepOneAmount ;

	/**第二阶段奖励金额*/
	@TableField(exist = false)
	private BigDecimal stepTwoReward ;
	/**第二阶段销售额*/
	@TableField(exist = false)
	private BigDecimal stepTwoAmount ;

	/**第三阶段奖励金额*/
	@TableField(exist = false)
	private BigDecimal stepThreeReward ;
	/**第三阶段销售额*/
	@TableField(exist = false)
	private BigDecimal stepThreeAmount ;

	/**第四阶段奖励金额*/
	@TableField(exist = false)
	private BigDecimal stepFourReward ;
	/**第四阶段销售额*/
	@TableField(exist = false)
	private BigDecimal stepFourAmount ;

	/**第五阶段奖励金额*/
	@TableField(exist = false)
	private BigDecimal stepFiveReward ;
	/**第五阶段销售额*/
	@TableField(exist = false)
	private BigDecimal stepFiveAmount ;
}
